package com.smart.manager.member.entities.views;

import com.smart.common.entities.core.BaseView;
import com.smart.manager.system.entities.enums.Sex;
import io.ebean.annotation.View;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 会员系统-会员资料
 *
 * @author Administrator
 * @TableName system_module
 */
@Data
@Entity
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@View(name = "member_profile_main")
public class MemberView extends BaseView {

    @ApiModelProperty("会员编号")
    @Id
    private Long id;

    @ApiModelProperty("会员昵称")
    private String nickName;

    @ApiModelProperty("手机号码")
    private String phoneNumber;

    @ApiModelProperty("性别")
    private Sex sex;

    @ApiModelProperty("教程")
    private String tutorial;

    @ApiModelProperty("头像地址")
    private String avatar;

    @ApiModelProperty("邀请人Id")
    private Long inviterId;

    /**
     * 邀请码
     */
    @ApiModelProperty("邀请码")
    private String inviterCode;




}
